package com.grancalavera.flixel.spaceinvaders
{
import org.flixel.FlxSprite;
import org.flixel.FlxText;
import org.flixel.FlxGroup;
import org.flixel.FlxG;

public class SplashText extends FlxGroup
{
    public function SplashText()
    {
        var bg:FlxSprite = new FlxSprite();
        bg.createGraphic(240, 100, 0xFFFFFFFF);
        bg.x = FlxG.width / 2 - bg.width / 2;
        bg.y = FlxG.height / 2 - bg.height / 2;
        add(bg);
        
        var t:FlxText = new FlxText(0,0,FlxG.width, "CLICK ANYWHERE\nON THE SCREEN\nTO PLAY");
        t.setFormat(null, 20, 0xFF000000, "center");
        t.y = FlxG.height / 2 - t.height / 2;
        add(t);
        
        
    }
}
}